"""
1 while循环遍历列表

2 for循环遍历列表
"""

list = ['a','b','c','d','e','f']
i = 0
while i <len(list):
    print(list[i])
    i +=1

list1 = ['Tom','Alin','Carry','Timi','Rose']

for i in list1:
    #遍历序列中的数据
    print(i)